package com.hjw.junit;

import com.hjw.dao.DVDDaoImp;
import com.hjw.pojo.DVD;

import java.time.LocalDate;
import java.util.Arrays;

/**
 * @author hjwStrart
 * @create 2022-01-14 11:25
 */
public class TestDao {
    public static void main(String[] args) {
        DVDDaoImp dvdDaoImp = new DVDDaoImp();
        DVD[] dvds = dvdDaoImp.queryAllDVD();
        dvdDaoImp.loanDVD("风声鹤唳", LocalDate.of(2022,1,14));
        System.out.println(Arrays.toString(dvds));
        System.out.println(dvdDaoImp.loanDVD("罗马假日", LocalDate.of(2022, 1, 14)));
        System.out.println(Arrays.toString(dvds));
//        Boolean aBoolean = dvdDaoImp.addDVD(new DVD());
//        System.out.println(aBoolean);
//        System.out.println(Arrays.toString(dvdDaoImp.queryAllDVD()));
//        System.out.println(dvdDaoImp.queryOneDVD(""));
//        System.out.println(dvdDaoImp.queryOneDVD(null));
//        System.out.println(dvdDaoImp.queryOneDVD("hjw自传"));
//
//        System.out.println(dvdDaoImp.returnIndex());
//        dvdDaoImp.deleteDVD("罗马假日");
//        System.out.println(Arrays.toString(dvdDaoImp.queryAllDVD()));
//        System.out.println(dvdDaoImp.returnIndex());
    }
}
